<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


</head>
<body>

{template 'header.html'}








<div class="container">
	
    
    <div class="main">
    	
        <div class="mod">
        	<div class="head">详细内容</div>
            <div class="body">
            	{$content}
            </div>
        </div>

 
        {php list($mod, $field, $value) = array('blog', 'blogid', $blogid);}
        {template 'load.html','comment'}
        
        
        
       
    
    
    <div class="mod">
    	<div class="head">常用操作</div>
        <div class="body">
        	{if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
            {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
            <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
            <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
            <a href="{SITE_URL}{$url}#top">[返回顶部]</a> 
        </div>
    </div>
        
  
   </div>
    
    
    <script type="text/javascript">
		$(function(){
			$(window).scroll(function(){ 
				if($(window).scrollTop()<165){
					$('.aside').removeClass('fixed');
				}
				
				// 不给ie6效果
				if($(window).scrollTop()>165&&!($.browser.msie&&$.browser.version=='6.0')){
					$('.aside').addClass('fixed');
				}
			});
		})
	</script>
    <style type="text/css">
		/* 解决固定层在IE6下闪的问题 */
		*html{
			background-image:url(about:blank);
			background-attachment:fixed;
		}
		.fixed{
			position:absolute; 
			margin-left:10px;
			position:fixed; 
			clip:rect(0 100% 100% 0);
			_position:absolute;
			
			/* 底部 */
			top:0px;
		}
	</style>
    
    
    <div class="aside">
  		
        <div class="mod">
        	<div class="head">热门阅读</div>
            <ul class="body">
              <!--{get sql="select title,url,hits from table_blog order by hits desc" rows="10"}-->
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li>
              <!--{/get}-->
            </ul>
        </div>
       
    </div>
</div>




<script type="text/javascript" src="{SKIN_PATH}comment/comment.js"></script>
  <script type="text/javascript">
  <!--
    $().ready(function() {        
        if(setting.ischecklogin == 0 && getcookie('auth') === null)
        {
            $('#comment').val("请您登陆后发表评论！");
            $('#comment').attr("disabled","disabled");
            $('#dosubmit').attr("disabled","disabled");
        }
        else 
        {
            $('#comment').val("我也来说两句！");
        }
    });
    function reply_restoration()
    {
        if($('#comment').val() == '')
        {
            $('#comment').val("我也来说两句！");
        }
    }
    function reply_clearfield()
    {
        if ($('#comment').val() == "我也来说两句！") 
        {
            $('#comment').val("");   
        }
        document.getElementById('code_img').style.display = 'block';document.getElementById('code_img').src='misc/checkcode/checkcode.php';
    }
    function checkForm()
    {
        if($('#comment').val() == '' || $('#comment').val() == "我也来说两句！")
        {
            alert("内容不能为空");
            $('#comment').focus();
            return false;
        }
        if($('#checkcode').val() == '' )
        {
            alert("验证码不能为空");
            $('#checkcode').focus();
            return false;
        }
        if ($('#comment').val().length > 1000) 
        {
            alert("内容太长，最多 1000 个文字");
            return false;
        }
    }
  //-->
  </script>
<script language="javascript" src="?module=blog&action=count&blogid={$blogid}"></script>
{template 'footer.html'}